package po.userpo;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import Enum.*;

public class User implements Serializable{
	 UserID id;
	  String name;
	  String password;
	  int age;
	  UserRole role;
	  Gender gender;
	  Faculty faculty;
	  Hometown hometown;
	  Birthday birth;
	  
	  
	  public User(UserID i, String n, String p, int a, UserRole r,
			  Gender g, Faculty f, Hometown h, Birthday b) throws RemoteException{
	  	id = i;
	  	name = n;
	  	password = p;
	  	age = a;
	  	role = r;
	  	gender = g;
	  	faculty = f;
	  	hometown = h;
	  	birth = b;
	  }
	  
		public User(UserID i,String p,UserRole r) throws RemoteException {
			// TODO Auto-generated constructor stub
			id = i;
			password = p;
			role = r;
		}
	  
	  public String getUsername() throws RemoteException{
	  	return name;
	  }
	  
	  public String getPassword() throws RemoteException{
	  	return password;
	  }
	  
	  public UserRole getRole() throws RemoteException{
	  	return role;
	  }
	  
	  public Gender getGender() throws RemoteException{
	  	return gender;
	  }
	  
	  public Faculty getFaculty() throws RemoteException{
	  	return faculty;
	  }
	  
	  public Hometown getHome() throws RemoteException{
	  	return hometown;
	  }
	  
	  public Birthday getBirthday() throws RemoteException{
		  return birth;
	  }
	  
	  public UserID getUserID() throws RemoteException{
		  return id;
	  }

}
